<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>特惠活动管理- 766 SMART HOME</title>
<meta name="author" content="BIZ Team" />
<meta name="copyright" content="BIZ" />
<link href="${base}/resources/admin/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${base}/resources/admin/js/jquery.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.tools.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.validate.js"></script>
<script type="text/javascript" src="${base}/resources/admin/editor/kindeditor.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/common.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/input.js"></script>
<style type="text/css">
	.specificationSelect {
		height: 100px;
		padding: 5px;
		overflow-y: scroll;
		border: 1px solid #cccccc;
	}
	
	.specificationSelect li {
		float: left;
		min-width: 150px;
		_width: 200px;
	}
	#feedBack{
		height:300px;
		width:30%;
	}
</style>
<script type="text/javascript">
$().ready(function() {

	[@flash_message /]
	var $inputForm = $("#inputForm");
	// 表单验证
	$inputForm.validate({
		rules: {
			promiseContent:{
				required: true
			},
			serviceContent:{
				required: true
			}
		},
		messages: {
			promiseContent: {
				required: "必填"
			},
			serviceContent:{
				required: "必填"
			}
		}
	});
	$("[name=sub]").click(function(){
		$("#inputForm").submit();
	});
});

</script>
</head>
<body>
	<div class="path">
		<a href="${base}/admin/common/index.jhtml">${message("admin.path.index")}</a> &raquo;特惠活动和品牌专区管理
	</div>
	<form id="inputForm" action="imageShow.jhtml" method="post" enctype="multipart/form-data">
		<table class="input tabContent">
			<tr>
				<th>
					<span class="requiredField">*</span>特惠活动图:
				</th>
				<td>
					<img src="[#if teHuiManager?size>0]${teHuiManager.get(0).path}[/#if]" style="width:960px;height:190px" id="image"/>
				</td>
			</tr>
			<tr>
				<th>
					<span class="requiredField"></span>
				</th>
				<td>
					<input type="file" name="uploadFile" value="请选择文件">
					<input type="hidden" name="id" value="[#if teHuiManager?size>0]${teHuiManager.get(0).id}[/#if]"/>
				</td>			
			</tr>
			<tr>
				<th>
					<span class="requiredField">*</span>品牌专区图:
				</th>
				<td>
					<img src="[#if teHuiManager?size>0]${teHuiManager.get(0).brandPath}[/#if]" style="width:960px;height:190px" id="image"/>
				</td>
			</tr>
			<tr>
				<th>
					<span class="requiredField"></span>
				</th>
				<td>
					<input type="file" name="uploadFile" value="请选择文件">
				</td>			
			</tr>
		</table>
		<table class="input">
			<tr>
				<th>
					&nbsp;
				</th>
				<td>
					<input type="button" class="button" name="sub" value="确定" onclick="location.href='list.jhtml'" />
					<input type="button" class="button" value="${message("admin.common.back")}" onclick="location.href='list.jhtml'" />
				</td>
			</tr>
		</table>
	</form>
</body>
</html>